#ifndef WIDGET_GAME_END_H
#define WIDGET_GAME_END_H



#include "ai.h"
#include "players.h"
#include "gui.h"



/** @brief Gui class for showing game end dialog with buttons.
*
*   \image html widget_buy.jpeg
*/
class game_end_widget: public QDialog
{

	Q_OBJECT

public:

	/**	@brief Constructor creates the game end window
	*	@param pl winning player
	*	@param parent Qt parent of the widget
	*	@param flags Qt flags
	*/
	game_end_widget( player* pl, QWidget* parent = 0, Qt::WFlags flags = 0 );


private slots:

	//! @brief Qt slot, that shows ai statistics
	void show_statistics();
	//! @brief Qt slot, that shows progress graphs
	void show_graph();
	//! @brief Qt slot, that exports ai statistics
	void export_statistics();
	//! @brief Qt slot, that exports progress data
	void export_progress();
	//! @brief Qt slot, that saves starting objects to file
	void save_objects();
	//! @brief Qt slot, that saves replay to file
	void save_replay();
	//! @brief Qt slot, that starts new game
	void new_game();
	//! @brief Qt slot, that exits application to main menu
	void exit_to_menu();
	//! @brief Qt slot, that exits application
	void exit_app();

};



#endif